package com.example.a.movetest1;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.liji.imagezoom.util.ImageZoom;

import java.util.ArrayList;
import java.util.List;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        final String[] urls = new String[] {
//                "https://ss0.bdstatic.com/94oJfD_bAAcT8t7mm9GUKT-xh_/timg?image&quality=100&size=b4000_4000&sec=1479174352&di=5e01ae3f2a6e7af7572ca993a96ce5cd&src=http://f.hiphotos.baidu.com/image/pic/item/a8014c086e061d9507500dd67ff40ad163d9cacd.jpg",
//                "https://ss0.bdstatic.com/94oJfD_bAAcT8t7mm9GUKT-xh_/timg?image&quality=100&size=b4000_4000&sec=1479174352&di=e97384269732cac637000365f47581d7&src=http://d.hiphotos.baidu.com/image/pic/item/562c11dfa9ec8a13f075f10cf303918fa1ecc0eb.jpg",
//                "https://ss0.bdstatic.com/94oJfD_bAAcT8t7mm9GUKT-xh_/timg?image&quality=100&size=b4000_4000&sec=1479174352&di=a5a9dc249dcfc67f6b2a6cd21a42329e&src=http://g.hiphotos.baidu.com/image/pic/item/c2cec3fdfc03924578c6cfe18394a4c27c1e25e8.jpg",
//                "https://ss0.bdstatic.com/94oJfD_bAAcT8t7mm9GUKT-xh_/timg?image&quality=100&size=b4000_4000&sec=1479174352&di=b4ec34b54effa54f3c5be76e94381b44&src=http://a.hiphotos.baidu.com/image/pic/item/f9dcd100baa1cd11daf25f19bc12c8fcc3ce2d46.jpg",
//                "http://c.hiphotos.baidu.com/image/pic/item/d043ad4bd11373f0d892d5d9a10f4bfbfaed04c2.jpg"
                "http://img.zcool.cn/community/0117e2571b8b246ac72538120dd8a4.jpg@1280w_1l_2o_100sh.jpg",
                "http://img07.tooopen.com/images/20170316/tooopen_sy_201956178977.jpg",
                "http://www.qqma.com/imgpic2/cpimagenew/2018/4/5/6e1de60ce43d4bf4b9671d7661024e7a.jpg",
                "http://img.zcool.cn/community/011a5859ac137ea8012028a92fc78a.jpg@1280w_1l_2o_100sh.jpg",
                "http://cdn.duitang.com/uploads/item/201603/06/20160306140033_NiUah.jpeg"
        };

        //添加list数据
        final List<String> list = new ArrayList<>();
        for (int i = 0; i < urls.length; i++) {
            list.add(urls[i]);
        }
        ImageZoom.show(MainActivity.this, urls[1], list);
    }
}
